<?php
/* @var $this TicketController */
/* @var $data Ticket */
?>
	<tr>
		<td width="2% pl15">
			<?php echo CHtml::checkBox('id[]','',array('class'=>'chk','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->zti_id))?>
		</td>
		<td class="">
			<div class="<?php echo $data->zti_pic?>"><span class="value"><?php echo round($data->zti_value)?></span></div>
		</td>
		<td width="15%"><?php echo date('Y-m-d H:i',$data->zti_start_time)?></td>
		<td width="16%"><?php echo CHtml::link(mb_substr($data->company->zc_name,0,20,'utf8'),$data->company->domain,array('class'=>''))?></td>
		<td width="10%"><?php echo CHtml::encode($data->zti_value)?></td>
		<td width="10%"><?php echo CHtml::encode($data->zti_issuance_number)?></td>
		<td width="12%">
			<?php 				
				if($data->zti_start_time>time()){
					echo '<span class="c_green3">未开始</span>';
				}elseif($data->zti_end_time<=time()){
					echo '<span class="c_999">已结束</span>';
				}else{
					if($data->zti_status==1){
						if($data->zti_inventory>0){
							echo '<span class="c_f60">领取中</span>';
						}else{
							echo '<span class="c_999">已领完</span>';
						}
					}elseif($data->zti_status==2){
						echo '<span class="c_999">已关闭</span>';
					}
				}
			?>
		</td> 
		<td class="operate" width="10%">
			<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/discount/delete/id/'.$data->zti_id.'","你确定要删除这条信息吗？")'))?>
		</td>
	</tr>
